import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SEntityId } from "./SEntityId";
type int = number;
//class SCrossGuildWarEndWar
    
    export  class SCrossGuildWarEndWar extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossGuildWarEndWar();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.ring);
            this.guildId.__write(arg1);
            arg1.writeString(this.guildName);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.ring = arg1.readInt();
            this.guildId = new SEntityId();
            this.guildId.__read(arg1);
            this.guildName = arg1.readString();
            return;
        }

        public /* const */_type: int=907;

        public /* var */ring: int;

        public /* var */guildId: SEntityId;

        public /* var */guildName: string;

        public static /* var */_regist: SCrossGuildWarEndWar;
    }

            SCrossGuildWarEndWar._regist = new SCrossGuildWarEndWar(true);
        